package com.peas.platform.module.icims.contract.initial.dto;

import java.util.*;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.dto.BaseDto;
import com.peas.platform.framework.mybatisplus.annotation.Condition;
import com.peas.platform.framework.mybatisplus.annotation.ConditionOperator;
import lombok.Data;
import lombok.EqualsAndHashCode;

// 初始合同执行-借阅
@Data
@EqualsAndHashCode(callSuper = false)
public class ContractInitialBorrowDto extends BaseDto {

    // 合同ID
    // 【初始合同表】
    @Comment(value = "合同ID")
    private Long contractInitialId;

    // 批次号
    @Comment(value = "批次号")
    @Condition(operator = ConditionOperator.IN)
    private String batch;

    // 借阅人
    // 【用户表】
    @Comment(value = "借阅人")
    private Long borrowUserId;

    // 借阅人部门
    // 【组织架构表】
    @Comment(value = "借阅人部门")
    private Long borrowDepartmentId;

    // 借阅类型
    // 纸质、电子
    // 字典取值:ContractInitialBorrowType
    @Comment(value = "借阅类型", dictType = "ContractInitialBorrowType")
    @Condition(operator = ConditionOperator.IN)
    private String borrowType;

    // 借阅状态
    // 枚举取值:ContractInitialBorrowState
    @Comment(value = "借阅状态", enumType = "ContractInitialBorrowState")
    @Condition(operator = ConditionOperator.IN)
    private String state;

    // 借阅凭据
    @Comment(value = "借阅凭据")
    @Condition(operator = ConditionOperator.IN)
    private String borrowToken;

    // 借阅签字附件
    // 【附件表】
    @Comment(value = "借阅签字附件")
    private Long borrowAttachmentId;

    // 电子档下载次数
    @Comment(value = "电子档下载次数")
    private Long downloadTimes;

    // 归还时间
    @Comment(value = "归还时间")
    private Date returnTime;

    // 备注
    @Comment(value = "备注")
    private String remark;

    //Criteria
    private Date createTimeStart;
    private Date createTimeEnd;
    private Date updateTimeStart;
    private Date updateTimeEnd;
    private Date returnTimeStart;
    private Date returnTimeEnd;
}
